package team.seekers.hula.record.wind.entity.dao;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import team.seekers.hula.common.entity.enums.WindTypeEnum;

/**
 * @author hbc
 * @since 2021-02-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Wind对象", description="一个创作")
@TableName(value = "wind")
public class WindDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @JsonValue
    private WindTypeEnum type;

    @ApiModelProperty(value = "获得的hula币")
    private Double hulaCoin;

    @ApiModelProperty(value = "获得的hula分")
    private Double hulaScore;

    @ApiModelProperty(value = "指向一个创作")
    private String linkId;

    @ApiModelProperty(value = "指向wind的发出者")
    private String userId;

    @ApiModelProperty(value = "可见性")
    private Integer visibility;

    @TableLogic
    private Integer isDeleted;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;




}
